package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 巡更路线
 * </p>
 *
 * @author pan
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmRoutePatrol对象", description="巡更路线")
public class CrmRoutePatrol implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "路径名称")
    @TableField("route_name")
    private String routeName;

    @ApiModelProperty(value = "所属园区ID")
    @TableField("area_manage_id")
    private Long areaManageId;

    @ApiModelProperty(value = "区分二维码路线和视频路线,0、二维码；1、视频")
    @TableField("qr_or_video")
    private Long qrOrVideo;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "路线节点")
    @TableField(exist = false)
    private List<CrmPointPatrol> pointPatrols;

}
